package com.ruoyi.project.WxMoudle.Bases;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * 历史测试成绩实体类
 */
public class CpEntity implements Serializable {
    private String courseName;//专题名称

    private Long nid;//试卷id

    private List<cpentity2> params;
    //构造方法
    public CpEntity(Long nid,String courseName){
        this.courseName=courseName;
        this.nid=nid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof CpEntity)) return false;
        CpEntity cpEntity = (CpEntity) o;
        return Objects.equals(getCourseName(), cpEntity.getCourseName()) &&
                Objects.equals(getNid(), cpEntity.getNid());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getCourseName(), getNid());
    }


    public Long getNid() {
        return nid;
    }

    public void setNid(Long nid) {
        this.nid = nid;
    }



    public List<cpentity2> getParams() {
        return params;
    }

    public void setParams(List<cpentity2> params) {
        this.params = params;
    }


    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

}
